<?xml version="1.0" encoding="UTF-8"?>
<as:AppSchemaDataAccess xmlns:as="http://www.geotools.org/app-schema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.geotools.org/app-schema AppSchemaDataAccess.xsd">
    <namespaces>
        <Namespace>
            <prefix>gml</prefix>
            <uri>http://www.opengis.net/gml</uri>
        </Namespace>
        <Namespace>
            <prefix>gsml</prefix>
            <uri>urn:cgi:xmlns:CGI:GeoSciML:2.0</uri>
        </Namespace>
    </namespaces>
    <sourceDataStores>
        <DataStore>
            <id>datastore</id>
            <parameters>
                <Parameter>
                    <name>directory</name>
                    <value>file:./</value>
                </Parameter>
            </parameters>
        </DataStore>
    </sourceDataStores>
    <targetTypes>
        <FeatureType>
            <schemaUri>http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd</schemaUri>
        </FeatureType>
    </targetTypes>
    <typeMappings>
        <FeatureTypeMapping>
            <sourceDataStore>datastore</sourceDataStore>
            <sourceType>InvalidColumnGeologicUnit</sourceType>
            <targetElement>gsml:GeologicUnit</targetElement>
            <attributeMappings>
              
              
              <AttributeMapping>
                    <targetAttribute>
                        gsml:GeologicUnit
                    </targetAttribute>
                    <idExpression>
                        <OCQL>ID</OCQL>
                    </idExpression>
                </AttributeMapping>  
                
                <AttributeMapping>
                    <targetAttribute>
                        gml:name[1]
                      </targetAttribute>
                    <sourceExpression>
                        <OCQL>NAME</OCQL>
                    </sourceExpression>
                    <ClientProperty>
                        <name>codeSpace</name>
                        <value>'urn:x-test:classifierScheme:TestAuthority:GeologicUnitName'</value>
                    </ClientProperty>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>
                        gml:name[2]
                      </targetAttribute>
                    <sourceExpression>
                        <OCQL>CODE</OCQL>
                    </sourceExpression>
                    <ClientProperty>
                        <name>codeSpace</name>
                        <value>'urn:x-test:classifierScheme:TestAuthority:GeologicUnitCode'</value>
                    </ClientProperty>
                </AttributeMapping>
                <AttributeMapping>
                    <targetAttribute>
                        gml:name[3]
                      </targetAttribute>
                    <sourceExpression>
                        <OCQL>URN</OCQL>
                    </sourceExpression>
                    <ClientProperty>
                        <name>codeSpace</name>
                        <value>'urn:x-test:classifierScheme:TestAuthority:GeologicUnitId'</value>
                    </ClientProperty>
                </AttributeMapping>  
                <AttributeMapping>
                    <targetAttribute>
                        gml:name[4]
                      </targetAttribute>
                    <sourceExpression>
                        <OCQL>DESCRIPTIO</OCQL>
                    </sourceExpression>
                    <ClientProperty>
                        <name>codeSpace</name>
                        <value>'urn:x-test:classifierScheme:TestAuthority:GeologicUnitDescription'</value>
                    </ClientProperty>
                </AttributeMapping>              
            </attributeMappings>
        </FeatureTypeMapping>
    </typeMappings>
</as:AppSchemaDataAccess>
